package zozopo.comm;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;


import com.opensymphony.xwork2.Action;

public class ValicodeAction implements Action {

	public String execute() throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest();   
		HttpServletResponse response = ServletActionContext.getResponse();
		
		try {
			CreateImage.creatImage(request, response);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}